package com.elem.service.impl;

import com.elem.bean.Food;
import com.elem.dao.FoodDao;
import com.elem.dao.impl.FoodDaoImpl;
import com.elem.service.FoodService;
import com.elem.util.DruidUtil;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;

import java.util.List;

public class FoodServiceImpl implements FoodService {
    // 创建FoodDao对象
    FoodDao foodDao = new FoodDaoImpl();

    @Override
    public List<Food> listFoodByBusinessId(Integer businessId) throws Exception {
        List<Food> foodList = foodDao.listFoodByBusinessId(businessId);
        return foodList;
    }
}
